package com.css.common.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 停车方式
 */
@Getter
@AllArgsConstructor
public enum TcfsEnum {
	
	TCFS_LT("01", "临停"),
	
    TCFS_BY("02", "包月");

    private final String dm;

    private final String mc;

    public static String getMc(String dm) {
        TcfsEnum res = Arrays.stream(values())
                .filter(x -> x.getDm().equals(dm))
                .findFirst().orElse(null);
        return res == null ? null : res.getMc();
    }
}
